using SQLServices.Repository;
using SQLServices.Runners;

namespace SQLServices.TransMgr
{
    /// <summary>
    /// The transaction manager exposes the database connection that the Runner instance uses
    /// to execute the scripts.
    /// The manager may try to use a single connection for the whole execution or it may create
    /// a new one if an error takes place. It may also execute the scripts within a transaction 
    /// so if an exception takes place all the updates are rollbacked.
    /// </summary>
    public interface ITransManager
    {
        /// <summary>
        /// Executes the SQL statement for the Runner
        /// </summary>
        void ExecuteSQL(string sqlStmt);
    }
}
